.PHONY: mq_connectiontest
connection:mq_connectiontest.cpp ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf -g 

channel:mq_channeltest.cpp ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf -g 

consumer:mq_consumertest.cpp 
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf -g

route:mq_routetest.cpp 
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf -g

host:mq_hosttest.cpp ../mqcommon/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf -g

message:mq_messagetest.cpp ../mqcommon/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf -g

binding:mq_bindingtest.cpp
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf -g

queue:mq_queuetest.cpp
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf -g

exchange:mq_exchangetest.cpp
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf

clean:
	rm exchange queue binding message host route consumer
